<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@include file="/context/mytags.jsp" %>
<!DOCTYPE html>
<html>
<head>
    <title></title>
    <t:base type="jquery,easyui,tools,DatePicker,ckeditor"></t:base>

    <link rel="stylesheet" href="${webRoot}/plug-in/custom_style/css/style.css"/>
    <link rel="stylesheet" href="${webRoot}/plug-in/lhgDialog/skins/blue.css"/>
    <link rel="stylesheet" href="${webRoot}/plug-in/lhgDialog/skins/default.css"/>
    <script type="text/javascript" src="${webRoot}/plug-in/ajaxfileupload/ajaxfileupload.js"></script>
</head>

<body scroll="no">
<t:formvalid formid="cityObj" dialog="true" usePlugin="password" layout="table"
             action="cityController.do?save">
    <input type="hidden" name="id" value="${cityEntity.id}"/>

    <div class="new_table_list">
        <table cellpadding="0" cellspacing="1" class="formtable">
            <tbody>
            <tr>
                <td align="left" style="width: 100px">
                    <label class="Validform_label">
                        城市名称:
                    </label>
                </td>
                <td class="txt_left value" colspan="3">
                    <input class="inputxt" style="width: 250px;" name="name" value="${cityEntity.name}" datatype="*"
                           maxlength="128">
                    <span class="Validform_checktip"></span>
                </td>
            </tr>
            <tr>
                <td align="left" style="width: 100px">
                    <label class="Validform_label">
                        是否开放:
                    </label>
                </td>
                <td class="txt_left value" colspan="3">
                        <%--<input class="inputxt" style="width: 250px;" name="name" value="${cityEntity.isOpen}" datatype="*" maxlength="128">--%>
                        <%--<span class="Validform_checktip"></span>--%>
                    <input type="hidden" id="isOpen" name="isOpen" value="${cityEntity.isOpen}"/>
                    <select onclick="inputIsOpen();">
                        <option value="1">是</option>
                        <option value="0">否</option>
                    </select>
                </td>
            </tr>
        </table>
    </div>
</t:formvalid>
<script type="text/javascript">
    $(function(){
        $("#isOpen").val(1);
    });

    function inputIsOpen(){
        var isOpen = $("select").val();
        $("#isOpen").val(isOpen);
    }
</script>
</body>

</html>